package com.fishingwithme.infrastructure.mapper;

import com.fishingwithme.infrastructure.dtos.SpotHarvestDto;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface SpotHavestMapper extends BaseMapper<SpotHarvestDto> {
    IPage<SpotHarvestDto> getSpotHarvests(IPage<SpotHarvestDto> page, @Param("spotId") Long spotId);
    SpotHarvestDto getSpotHarvest(Long id, Long userId, String targetType);
}
